package com.cz.run.service.impl;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.cz.run.beans.mysql.UserTradeRecord;
import com.cz.run.mapper.UserTradeRecordDao;
import com.cz.run.service.IUserTradeRecordService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户交易记录 服务实现类
 * </p>
 *
 * @author CAIYJ
 * @since 2018-05-23
 */
@Service
public class UserTradeRecordServiceImpl extends ServiceImpl<UserTradeRecordDao, UserTradeRecord> implements IUserTradeRecordService {


    @Override
    public List getUserTradeRecordByUserNameAndAddress( Wrapper<UserTradeRecord> wrapper) {
        return this.baseMapper.getUserTradeRecordByUserNameAndAddress(wrapper);
    }

    @Override
    public int getCountByUserNameAndAddress(Wrapper<UserTradeRecord> wrapper) {
        return this.baseMapper.getCountByUserNameAndAddress(wrapper);
    }


}
